<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="姜启航">
    <title></title>
    <style>
    *{
        box-sizing:border-box;
    }
    nav{
        width: 100%;
        height: 60px;
        background-color: #272A27;
    }
    .container{
        width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }
    a{
        text-decoration: none;
        color: #C2C8C6;
    }
    a:hover{
        color: #C39F5B;
    }
    .first{
        color: #C39F5B;
    }
    ul{
        margin: 0;
        padding: 0;
        list-style: none;
    }
    li{
        width: 70px;
    }
    .right{
        width: 700px;
          display: flex;  
         justify-content: space-between; 
         line-height: 60px;
        
    }
    .left{
        width: 400px;
          display: flex;  
         justify-content: space-around; 
         line-height: 60px;
    }
    .dianying .ul-dianying{
        width: 70px;
        /* border: 1px solid #343230; */
        background-color: #343230;
          display: none;  
    }
    .dianying .ul-dianying li{
        height: 30px;
         line-height: 30px;
    }
    .dianying .ul-dianying li a{
        display: block;
        /* border:   1px solid red; */
    }
    .dianying .ul-dianying li:hover{
        background-color: #534A36;
    }

    .ju .ul-ju{
        width: 70px;
        /* border: 1px solid #343230; */
        background-color: #343230;
          display: none;  
    }
    .ju .ul-ju li{
        height: 30px;
         line-height: 30px;
    }
    .ju .ul-ju li a{
        display: block;
        /* border:   1px solid red; */
    }
    .ju .ul-ju li:hover{
        background-color: #534A36;
        /* color: white; */
    }
    </style>
</head>
<body>
<nav>
    <div class="container">
        <ul class="right">
            <li><a class="first" href="#">会员首页</a></li>
            <li class="dianying"><a href="#">看电影</a>
            <ul class="ul-dianying">
                <li><a href="#">华语电影</a></li>
                <li><a href="#">海外大片</a></li>
            </ul>
            </li>
            <li class="ju"><a href="#">看剧</a>
            <ul class="ul-ju">
                <li><a href="#">英剧</a></li>
                <li><a href="#">美剧</a></li>
                <li><a href="#">港剧</a></li>
                <li><a href="#">韩剧</a></li>
            </ul>
            </li>
            <li><a href="#">看动漫</a></li>
            <li><a href="#">纪录片</a></li>
            <li><a href="#">德云社</a></li>
            <li><a href="#">看直播</a></li>
        </ul>

        <ul class="left">
            <li><a href="#">我的会员</a></li>
            <li><a href="#">会员卡</a></li>
        </ul>
    </div>
</nav>
</body>
</html>

<script>
    var dianying=document.querySelector('.right .dianying');
    var ul=document.querySelector('.right .ul-dianying');
    dianying.onmouseover=function(){
        ul.style.display='block';
    }
     dianying.onmouseout=function(){
        ul.style.display='none';
    }

    var ju=document.querySelector('.right .ju');
    var ulju=document.querySelector('.right .ul-ju');
        ju.onmouseover=function(){
        ulju.style.display='block';
    }
     ju.onmouseout=function(){
        ulju.style.display='none';
    }
    



</script>